const mysql=require('mysql')
module.exports={
    DB(sql,arr,fun){
        let dbSql=mysql.createConnection({
            host:'localhost',
            port:3306,
            user:'root',
            password:'root',
            database:'demo231'
        })
        dbSql.connect()
        dbSql.query(sql,arr,fun)
        dbSql.end()
    }
}